package com.cloudfun.campusshare.service;

import com.cloudfun.campusshare.common.model.AccessToken;
import com.cloudfun.campusshare.common.model.Token;

/**
 * Created by linyangping on 2019/10/21.
 */
public interface TokenFactory {

    String createJwtWithSecret(Token token, String secret);

    String createJwt(Token token, String pubKey);

    Token verifyJwt(String jwtStr);

    String createAccessStrWithSecret(AccessToken accessToken, String secret);

    AccessToken verifyAccessStr(String accessStr);

}
